package com.yanfan.energy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yanfan.energy.domain.EnergyCopDTO;
import com.yanfan.energy.domain.EnergyCop;
import com.yanfan.energy.service.EnergyCopService;
import com.yanfan.energy.mapper.EnergyCopMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lsy
 * @description 针对表【energy_cop】的数据库操作Service实现
 * @createDate 2024-05-06 10:53:00
 */
@Service
public class EnergyCopServiceImpl extends ServiceImpl<EnergyCopMapper, EnergyCop> implements EnergyCopService {

    @Override
    public List<EnergyCopDTO> calcCop(String beginDate, String endDate) {
        return this.baseMapper.selectCop(beginDate, endDate);
    }

    @Override
    public void insertCop(EnergyCopDTO copDTO) {
        this.baseMapper.insertCop(copDTO);

    }

    @Override
    public List<EnergyCopDTO> selectCop(String beginDate, String endDate) {
        return this.baseMapper.selectCop(beginDate, endDate);
    }
}




